# -*- coding: utf-8 -*-

a = 21
b = 10
c = 0

c = a + b
print("1 - c 的值为：", c)

c = a - b
print("2 - c 的值为：", c)

c = a * b
print("3 - c 的值为：", c)

c = a / b
print("4 - c 的值为：", c)

c = a % b
print("取模的值为：", c)

# 修改变量 a 、b 、c
a = 2
b = 3
c = a ** b
print("x的y次幂值为：", c)

a = 10
b = 5
c = a // b
print("取整除：", c, "\r\n")

# 且 或 非
print( '且 and', True and False );
print( '或 or', True or False );
print( '非 not', not False, "\r\n" );


# 成员运算符
print( '成员运算符 in', 5 in [1, 2, 3, 4, 5 ] ); # True
print( '成员运算符 not in', 5 not in [1, 2, 3, 4, 5 ], "\r\n" ); # False

# 身份运算符 ~ 两个对象的存储单元
print( 1 is 1, u'类似', 1 == 1 ); # True
print( 1 is not 1, u'类似', 1 != 1 ); # False